package com.ssy.lingxi.system.model.request;

import com.ssy.lingxi.system.handler.annotation.MenuCodeSourceAnno;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 根据Code、Source查询菜单编码详情接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2021-01-14
 */
public class MenuCodeGetVO implements Serializable {
    private static final long serialVersionUID = -9197465093078244020L;

    @NotBlank(message = "菜单编码不能为空")
    private String code;

    @NotNull(message = "对应的平台客户端枚举不能为空")
    @MenuCodeSourceAnno(nullable = false)
    private Integer source;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
}
